//
//  AMMessageDataModule.h
//  WeiDu_1_0
//
//  Created by foguo-mac-1 on 01/07/16.
//  Copyright (c) 2016 WeiDu Energy Tech. All rights reserved.
//

#import "HOBaseDataModule.h"
#import "HOBaseMessageEntity.h"
#import "HOMessageEntity.h"

@interface HOMessageDataModule : HOBaseDataModule
{
    NSMutableDictionary         *messageDic;
    NSMutableDictionary         *newMessageDic;
    NSObject                    *lock;
}
@property(nonatomic, retain)NSMutableArray     *orderMessageList;			//最新消息
@property(nonatomic, retain)NSMutableArray     *systemMessageList;          //系统消息
@property(nonatomic, retain)NSMutableArray     *lastMessageList;          //系统消息

#pragma mark
- (void)readMessageFromDBWithType:(int)type withMaxId:(int)maxID;
- (void)readNewMessageFromDB;
- (void)deleteNewMessageFromDB:(HOMessageEntity *)message;
- (void)deleteMessageFromDB:(int)type;
- (void)updateNewMessageIntoDB:(HOMessageEntity *)newMessage;
- (BOOL)hasUnreadMsg;

@end
